package cz.muni.fi.pa165.sme.web.fo;

/**
 * @author jirankova
 */
public class SportActivityFO {

	private Long id;
	private String title;
	private Float speed;

	public Long getId() {
		return id;
	}

	public void setId(final Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(final String title) {
		this.title = title;
	}

	public Float getSpeed() {
		return speed;
	}

	public void setSpeed(final Float speed) {
		this.speed = speed;
	}

	@Override
	public boolean equals(final Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		final SportActivityFO that = (SportActivityFO) o;

		if (id != null ? !id.equals(that.id) : that.id != null) return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}
}
